package com.example.demo.mapper;

import com.example.demo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Cp
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-09-15 10:32:56
* @Entity com.example.demo.entity.User
*/
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT * FROM user WHERE user_account = #{userAccount} AND user_password = #{userPassword}")
    User findByAccountAndPassword(@Param("userAccount") String userAccount, @Param("userPassword") String userPassword);
}



